package com.cskaoyan.controller.user;

import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.BaseParam;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.bean.po.MarketAddress;
import com.cskaoyan.bean.po.MarketAddressExample;
import com.cskaoyan.mapper.MarketAddressMapper;
import com.cskaoyan.service.user.UserAddressService;
import com.cskaoyan.util.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author jzp
 * @since 2022/11/19 21:26
 */
@RestController
@RequestMapping("admin/address/")
public class UserAddressController {
    @Autowired
    UserAddressService userAddressService;

    @RequestMapping("list")
    public BaseRespVo list(BasePageInfo info, String name, String userId) {
        CommonData commonData = userAddressService.list(info , name, userId);
        return BaseRespVo.succeed(commonData);
    }
}
